package com.wzw.springboot.principle.aop;

import com.wzw.springboot.principle.annotation.MvcExt;
import org.springframework.stereotype.Component;

/**
 * @author wangzhiwen
 */
@Component
public class Target {
    /**
     * 目标方法
     */
    @MvcExt
    public void service(Stu stu) throws IndexOutOfBoundsException{
        System.out.println("目标方法完成的业务逻辑。。。。。");
        //throw new IndexOutOfBoundsException("异常");
    }

    public Target() {
        System.out.println("22222222222222");
        System.out.println("22222222222222");
        System.out.println("22222222222222");
        System.out.println("22222222222222");
        System.out.println("22222222222222");
    }
}
